package com.fan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fan.utils.CommonResults;
import com.sixth.entity.Course;
import com.sixth.until.CommonResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: self-tui-education
 * @description:
 * @author: 老范
 * @create: 2022-04-18 09:12
 **/

public interface CourseService extends IService<Course> {

    List<Course> findCourseId(@Param("courseId") String courseId);
    //    通过课程id和讲师id查询课程和讲师信息
    CommonResult queryAllCourseAndTeacherName(String id);

    CommonResult findChapterById(String id);
    //   根据课id和讲师id查询当前讲师发布的视频
    CommonResults queryAllById(String id, String mobile);

    CommonResults queryMemberStatus(String id, String mobile);
}
